//
//  MyWalletCell.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/3.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "MyWalletCell.h"

@implementation MyWalletCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)bindDataWithModel:(WalletDetailModel *)model
{
    if (model.trade_type == 1) {
        self.typeImage.image = Image(@"icon_购物_大");
    }else if (model.trade_type == 2 || model.trade_type == 3)
    {
        self.typeImage.image = Image(@"icon_退款_大");
    }else if (model.trade_type == 6)
    {
        self.typeImage.image = Image(@"icon_充值_大");
    }else if (model.trade_type == 7)
    {
        self.typeImage.image = Image(@"icon_银行卡_大");
    }
    self.timeLabel.text= model.create_time;
    self.typeLabel.text = model.trade_type_name;
    self.numberLabel.text = model.format_money;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
